﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;


namespace Web_Demo
{
    public partial class indexmaster : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                //if (!("1".Equals(HttpContext.Current.Session[constants.user.ID_ROLE_USER])))
                //{
                //    Menu1.Items[3].Enabled = false;
                //    lbUser.Text = HttpContext.Current.Session[constants.user.FIRST_NAME].ToString();
                //}
            }
        }

        protected void Menu1_MenuItemClick(object sender, MenuEventArgs e)
        {
            //if (Menu1.SelectedItem.Text.Equals("Delete Folder"))
                
        }

        protected void lbtlogout_Click(object sender, EventArgs e)
        {
            HttpCookie cookie = new HttpCookie("remember", "yes");
            cookie.Expires = DateTime.Now;
            Response.Cookies.Add(cookie);
            Response.Redirect("login.aspx");
        }
    }
}